import { gstyRequest } from '../'
//查询模型类型
export async function getModelCategories(params) {
  return gstyRequest.get({
    url: '/model/type/getModelCategories',
    showLoading: true,
    params
  })
}
//查询模型类型思维导图
export async function getModelCategoriesMap(params) {
  return gstyRequest.get({
    url: '/model/type/getModelCategoriesMap',
    showLoading: true,
    params
  })
}
//查询模型类型列表
export async function getModelCategoriesList(params) {
  return gstyRequest.get({
    url: '/model/type/getModelCategoriesList',
    showLoading: true,
    params
  })
}
//验证模型类型是否存在
export async function verifyCategories(params) {
  return gstyRequest.get({
    url: '/model/type/verifyCategories',
    showLoading: true,
    params
  })
}
//保存模型类型
export async function saveCategories(data) {
  return gstyRequest.post({
    url: '/model/type/saveCategories',
    showLoading: true,
    data
  })
}
//删除模型类型
export async function deleteModelCategories(data) {
  return gstyRequest.post({
    url: '/model/type/deleteModelCategories',
    showLoading: true,
    data
  })
}
//验证模型类型是否含有子类
export async function isHaveModelCategoriesChildren(params) {
  return gstyRequest.get({
    url: '/model/type/isHaveModelCategoriesChildren',
    showLoading: true,
    params
  })
}
